<?php

namespace Summer\location\Models;

use \Backend\Models\ExportModel;

class CityExport extends ExportModel {

    public function exportData($columns, $sessionKey = null)
    {
        $city = CityModel::all();
        $city->each(function($city) use ($columns) {
            $city->addVisible($columns);
        });

        return $city->toArray();
        
    }

}
